from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _



class PcserversConfig(AppConfig):
    name = 'pcservers'
    verbose_name = _('服务器')

    def ready(self):
        from pcservers.models import ComputeArchitecture
        c_m_list = [1,2,3,4,5]
        for i in c_m_list:
            ComputeArchitecture.objects.get_or_create(compute_architecture=i)
